<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
  <th:block th:include="include :: header('新增教师信息')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  <form class="form-horizontal m" id="form-kuser-add">
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">教师名字：</label>
      <div class="col-sm-8">
        <input name="NAME" class="form-control" type="text" required>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">教师性别：</label>
      <div class="col-sm-8">
        <input name="gender" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">教师年龄：</label>
      <div class="col-sm-8">
        <input name="age" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">教师地址：</label>
      <div class="col-sm-8">
        <select name="address" class="form-control m-b" th:with="type=${@dict.getType('class_speed')}">
          <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
        </select>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">教师qq：</label>
      <div class="col-sm-8">
        <input name="qq" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">邮箱地址：</label>
      <div class="col-sm-8">
        <input name="email" class="form-control" type="text">
      </div>
    </div>
  </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
  var prefix = ctx + "system/kuser"
  $("#form-kuser-add").validate({
    focusCleanup: true
  });

  function submitHandler() {
    if ($.validate.form()) {
      $.operate.save(prefix + "/add", $('#form-kuser-add').serialize());
    }
  }
</script>
</body>
</html>